const parseJwtClaim = function(jwt) {
    let ts = jwt.split('.')
    // 获取到jwt的中间部分
    let payload = JSON.parse(decodeURIComponent(escape(window.atob(ts[1].replace(/-/g, "+").replace(/_/g, "/"))))); 
    return payload;                            
}

export default {
    parseJwtClaim
}